#include "VirtualBusiness.h"
#include "ILogger.h"
void VirtualBusiness::echo(ISession* session, const std::string& content)
{
    LogI("session:%p content:%s",session,content.c_str());
    session->Business<IVirtualBusiness>()->back(session->getServlet(),content + " :  service tag");
    session->Business<IVirtualBusiness>()->testRemoteLogic(session->getServlet(),1,100.1);
    LogI("echo end");
}

void VirtualBusiness::back(ISession *session, const std::string& content)
{
     LogI("session:%p content:%s",session,content.c_str());
    
}

void VirtualBusiness::testRemoteLogic(ISession *session, const int& x, const float& y)
{
     LogI("session:%p x:%d y:%f",session,x,y);
}

void VirtualBusiness::testRemoteLogicV1(ISession* session, const int& x, const double& y, const Information& z)
{
    LogI("session:%p info.x:%d info.y:%s",session,z.data.x,z.data.y.c_str());
}
void VirtualBusiness::onLoad(INode *node)
{
    LogI("node:%p",node);
}

REG_PLUGIN(VirtualBusiness);
